package com.ruoyi.fs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseProgressMapper;
import com.ruoyi.fs.domain.FsCaseProgress;
import com.ruoyi.fs.service.IFsCaseProgressService;

/**
 * 案件进展Service业务层处理
 * 
 * @author hero
 * @date 2024-11-27
 */
@Service
public class FsCaseProgressServiceImpl implements IFsCaseProgressService 
{
    @Autowired
    private FsCaseProgressMapper fsCaseProgressMapper;

    /**
     * 查询案件进展
     * 
     * @param id 案件进展主键
     * @return 案件进展
     */
    @Override
    public FsCaseProgress selectFsCaseProgressById(Long id)
    {
        return fsCaseProgressMapper.selectFsCaseProgressById(id);
    }

    /**
     * 查询案件进展列表
     * 
     * @param fsCaseProgress 案件进展
     * @return 案件进展
     */
    @Override
    public List<FsCaseProgress> selectFsCaseProgressList(FsCaseProgress fsCaseProgress)
    {
        return fsCaseProgressMapper.selectFsCaseProgressList(fsCaseProgress);
    }

    /**
     * 新增案件进展
     * 
     * @param fsCaseProgress 案件进展
     * @return 结果
     */
    @Override
    public int insertFsCaseProgress(FsCaseProgress fsCaseProgress)
    {
        fsCaseProgress.setCreateTime(DateUtils.getNowDate());
        return fsCaseProgressMapper.insertFsCaseProgress(fsCaseProgress);
    }

    /**
     * 修改案件进展
     * 
     * @param fsCaseProgress 案件进展
     * @return 结果
     */
    @Override
    public int updateFsCaseProgress(FsCaseProgress fsCaseProgress)
    {
        fsCaseProgress.setUpdateTime(DateUtils.getNowDate());
        return fsCaseProgressMapper.updateFsCaseProgress(fsCaseProgress);
    }

    /**
     * 批量删除案件进展
     * 
     * @param ids 需要删除的案件进展主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseProgressByIds(Long[] ids)
    {
        return fsCaseProgressMapper.deleteFsCaseProgressByIds(ids);
    }

    /**
     * 删除案件进展信息
     * 
     * @param id 案件进展主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseProgressById(Long id)
    {
        return fsCaseProgressMapper.deleteFsCaseProgressById(id);
    }
}
